import { Vector } from '../../common/vector';
import { Component } from './component';

export class MovementComponent extends Component {
  get velocity(): Vector {
    return this.direction.multiply(this.speed);
  }

  constructor(
    public direction: Vector,
    public speed: number
  ) {
    super();
  }
}
